
#include "stdio.h"
#include "string.h"
#include "stdlib.h"


int printArray(char pArray[10][30], int num)
{
	int i = 0;

	if (pArray == NULL)
	{
		return -1;
	}

	for (i=0; i<num; i++)
	{
		printf("%s \n", pArray[i]);
	}

	return 0;
}

void main()
{

	//打印 排序 ，再打印  //二维数组
	char bufArray[10][30] =  {"ccccc", "aaaa", "bbbb","11111"};

	printf("排序之前打印\n");

	printArray(bufArray, 4);

	system("pause");
}